package com.lh.feign;

import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;

/**
 * @author YMS
 * @date 2021/6/18
 */
@FeignClient(value = "service-ucenter")
@Component
public interface UcenterFeign {

    @ApiOperation(value = "将用户身份改变为讲师身份")
    @PostMapping("/eduucenter/member/changeTeacher/{id}")
    public void changeTeacher(@PathVariable("id") String id);


    @ApiOperation("将老师变为普通用户")
    @GetMapping("/eduucenter/member/changeUcenter/{id}")
    public void changeUcenter(@PathVariable("id") String id );
}
